package com.fjwt.gz.interfaces;

import com.fjwt.gz.db.entity.AwardCouponNotifyEntity;
import org.springframework.transaction.annotation.Transactional;

import jakarta.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

public interface ChannelCouponWriteService {

    /**卡券回调添加到卡券回调记录表中（每次回调都会记录，用于后面的定时任务扫描，定时任务去把卡券核销）**/

    String addNotifyRecord(Map<String, Object> requestMap);

    /**
     * 卡券核销回调接口解析参数
     **/
    Map<String, Object> paraseParamters(HttpServletRequest request) throws IOException;


    /**
     * 卡券核销回调接口处理逻辑
     **/
    @Transactional
   void  couponDoNotice(AwardCouponNotifyEntity awardCouponNotifyEntity) throws Exception;

}
